package cn.dhnep.demo.mapper;

import cn.dhnep.demo.pojo.Account;
import cn.dhnep.demo.pojo.Earnings;
import cn.dhnep.demo.pojo.Feedback;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dhn
 * @since 2021-08-30
 */
public interface FeedbackMapper extends BaseMapper<Feedback> {


    //分页查询
    List<Feedback> selectPageList(Page page);
    Integer selectPageCount(Page page);

    //id查询详情
    Feedback idqueryfeedback(Feedback feedback);

    //回复建议
    int updatefeedback(Feedback feedback);

    //查询账户总额
    Account selemoneycount(Account account);

    //赠送环保金
    int updatemoney(Account account);

    //新增反馈收益
    int addearnings(Earnings earnings);

}
